from api.ihrm_login_api import IhrmLoginApi


def get_headers():
    json_data={"mobile": "13800000002", "password": "888itcast.CN764%..."}
    resp = IhrmLoginApi.login(json_data)
    headers_data={"Authorization":"Bearer " + resp.json().get("data")}
    return headers_data


if __name__ == '__main__':
    ret = get_headers()
    print(ret)